<template>
  <div class="organization-layout">
    <el-container>
      <el-aside width="200px">
        <el-menu
          :default-active="$route.path"
          router>
          <el-menu-item index="/organization/home">
            <el-icon><HomeFilled /></el-icon>
            <span>工作台首页</span>
          </el-menu-item>
          <el-menu-item index="/organization/projects">
            <el-icon><List /></el-icon>
            <span>项目管理</span>
          </el-menu-item>
          <el-menu-item index="/organization/members">
            <el-icon><User /></el-icon>
            <span>成员管理</span>
          </el-menu-item>
          <el-menu-item index="/organization/hours">
            <el-icon><Timer /></el-icon>
            <span>时长管理</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
import { HomeFilled, List, User, Timer } from '@element-plus/icons-vue'
</script>

<style scoped lang="scss">
.organization-layout {
  height: 100vh;
  
  .el-container {
    height: 100%;
  }

  .el-aside {
    background-color: #fff;
    border-right: 1px solid #e6e6e6;
    
    .el-menu {
      border-right: none;
    }
  }

  .el-main {
    background-color: #f5f7fa;
    padding: 20px;
  }
}
</style> 